xen/arm: gic: split set_irq_properties
authorJulien Grall <julien.grall@arm.com>
Wed, 27 Jul 2016 13:58:24 +0000 (14:58 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 27 Jul 2016 19:23:21 +0000 (12:23 -0700)
commit23e8118b8e691c2704d69aa2dcc3c496f9742321
tree94142e7f9b2985e8350f598389d8dfb8bf656a70
parent16580cde5afca51fd9b599c026265b35d4c86079
xen/arm: gic: split set_irq_properties

The callback set_irq_properties will configure the GIC for a specific
IRQ with the type and the priority.

In a follow-up patch, Xen will configure the type and the priority at
different stage of the routing. So split it in 2 separate callbacks.

At the same time, move the ASSERT to check the validity of the type and
if the desc->lock is locked in the common code (gic.c). This is because
the constraint are the same between GICv2 and GICv3, however the driver
of the latter did not contain any sanity check.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/gic-v2.c
xen/arch/arm/gic-v3.c
xen/arch/arm/gic.c
xen/include/asm-arm/gic.h